<<<<<<< HEAD
import Vue from "vue"
import VueRouter from "vue-router"
=======
import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)
>>>>>>> da85937c46a68704623e1c653d56a4a2c6859127
import Home from "../views/Home.vue"

Vue.use(VueRouter)

const routes = [
  {
<<<<<<< HEAD
    path: "/",
    name: "Home",
    component: Home,
    children: [
      {
=======
    path: '/a',
    name: 'A',
    component: () => import('../views/A.vue'),
  },
  {
    path: '/detail',
    name: 'Detail',
    component: () => import('../views/Detail.vue'),
  },
  {
    path: '/sku',
    name: 'Sku',
    component: () => import('../views/Sku.vue'),
  },
  {
    path: "/",
    name: "Home",
    component: Home,
    redirect: "/index",
    children: [
      {
        path: "index",
        name: "Index",
        meta: {
          keepAlive: true,
        },
        component: () => import("../views/Index.vue"),
      },
      {
   
>>>>>>> da85937c46a68704623e1c653d56a4a2c6859127
        path: "/order",
        name: "Order",
        component: () => import("../views/Order.vue"),
      },
    ],
  },
  {
<<<<<<< HEAD
=======
    path: "/store",
    name: "Store",
    component: () => import("../views/store.vue"),
  },
  {
    path: "/news",
    name: "News",
    component: () => import("../views/News.vue"),
  },
  {
    path: "/giftcard",
    name: "GiftCard",
    component: () => import("../views/GiftCard.vue"),
  },
  {
    path: "/historygift",
    name: "HistoryGift",
    component: () => import("../views/HistoryGift.vue"),
  },
  {
    path: "/cardrecord",
    name: "CardRecord",
    component: () => import("../views/CardRecord.vue"),
  },
  {
    path: "/giftrecord",
    name: "GiftRecord",
    component: () => import("../views/GiftRecord.vue"),
  },
  {
    path: "/coupon",
    name: "Coupon",
    component: () => import("../views/Coupon.vue"),
  },
  {
    path: '/couponexchange',
    name: 'CouponExchange',
    component: () => import('../views/CouponExchange.vue'),
  },
  {
    path: "/historycard",
    name: "HistoryCard",
    component: () => import("../views/HistoryCard.vue"),
  },
  {
    path: "/integral",
    name: "Integral",
    component: () => import("../views/Integral.vue"),
  },
  {
    path: "/integralmall",
    name: "IntegralMall",
    component: () => import("../views/IntegralMall.vue"),
  },
  {
    path: "/exchangedetails/:id",
    name: "ExchangeDetails",
    component: () => import("../views/ExchangeDetails.vue"),
  },
  {
    path: '/memberstore',
    name: 'MemberStore',
    component: () => import('../views/MemberStore.vue'),
  },
  {
    path: "/about",
    name: "About",
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () =>
      import(/* webpackChunkName: "about" */ "../views/About.vue"),
>>>>>>> da85937c46a68704623e1c653d56a4a2c6859127
    path: '/search/:kw?',
    name: 'Search',
    component: () => import('../views/Search.vue')
  },
  {
<<<<<<< HEAD
    path: '/detail',
    name: 'Detail',
    component: () => import('../views/Detail.vue')
  },
  {
    path: '/product/:items?',
    name: 'Product',
    component: () => import('../views/Product.vue')
  },
=======
    path: '/product/:items?',
    name: 'Product',
    meta: {
      keepAlive: true,
    },
    component: () => import('../views/Product.vue')
    
  },

>>>>>>> da85937c46a68704623e1c653d56a4a2c6859127
  {
    path: '/location',
    name: 'Location',
    component: () => import('../views/Location.vue')
  },
  {
    path: '/city',
    name: 'City',
    component: () => import('../views/City.vue')
  },
  {
<<<<<<< HEAD
    path: '/about',
    name: 'About',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () =>
      import(/* webpackChunkName: "about" */ "../views/About.vue"),
=======
    path: "/orderdetail",
    name: "OrderDetail",
    component: () => import("../views/OrderDetail.vue"),
  },
  {
    path: "/ordersettlement",
    name: "OrderSettlement",
    component: () => import("../views/OrderSettlement.vue"),
  },
  {
    path: "/customerservice",
    name: "CustomerService",
    component: () => import("../views/CustomerService.vue"),
  },
		{
    path: '/myinfo',
    name: 'MyInfo',
    component: () => import('../views/MyInfo.vue')
  },
  {
    path: '/register',
    name: 'Register',
    component: () => import('../views/Register.vue')
  },
  {
    path: '/me',
    name: 'Me',
    component: () => import('../views/Me.vue')
  },
  {
    path: '/vip',
    name: 'Vip',
    component: () => import('../views/Vip.vue')
  },
  {
    path: '/rights',
    name: 'Rights',
    component: () => import('../views/Rights.vue')
  },
  {
    path: '/sign',
    name: 'Sign',
    component: () => import('../views/Sign.vue')
  },
  {
    path: '/already',
    name: 'Already',
    component: () => import('../views/Already.vue')
  },
  {
    path: '/login',
    name: 'Login',
    component: () => import('../views/Login.vue')
  },
  {
    path: '/adress',
    name: 'Adress',
    component: () => import('../views/Adress.vue')
  },
  {
    path: '/exchange',
    name: 'Exchange',
    component: () => import('../views/Exchange.vue')
>>>>>>> da85937c46a68704623e1c653d56a4a2c6859127
  },
]

const router = new VueRouter({
<<<<<<< HEAD
  mode: "history",
  base: process.env.BASE_URL,
  routes,
})

export default router
=======
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
>>>>>>> da85937c46a68704623e1c653d56a4a2c6859127
